<?php $this->load->view('partial/head'); ?>

<h2>RESTOK BAHAN BAKU</h2>

<form method="post" action="<?= base_url()."index.php/pantry/save_restok_bahan" ?>">
	<input type="hidden" name="id_bahan_baku" value="<?= $detail['id_bahan_baku'] ?>" />
	
	<table cellpadding="10">
		<tr>
			<td>Nama</td>
			<td><?=$detail['nama']?></td>
		</tr>
		<tr>
			<td>Stok sekarang ini</td>
			<td><input type="hidden" name="stok" value="<?=$detail['stok']?>" /><?=$detail['stok']?> kg</td>
		</tr>
		<tr>
			<td>Jumlah Restok</td>
			<td><input type="text" size="5" name="jumlah" /> kg <br/> <i>*stok ini akan otomatis ditambahkan pada data bahan baku</i></td>
		</tr>
		<tr>
			<td>Tanggal Kadaluarsa</td>
			<td><input name="tgl_expired" size="20" placeholder="yyyy-mm-dd" /></td>
		</tr>
		<tr>
			<td></td>
			<td>
				<a href="<?= base_url()."index.php/pantry" ?>"><input type="button" value="Kembali" /></a>
				<input type="submit" value="Simpan" />
			</td>
		</tr>
	</table>
</form>